package com.example.permissionsystem1_1.businessFunction.controller.entity.reqDto.departmentInfoReqDto;

import com.example.permissionsystem1_1.common.entity.baseReqDto.BaseUpdateByIdReqDto;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class DepartmentInfoUpdateByIdReqDto extends BaseUpdateByIdReqDto {
    @NotBlank(message ="不能为null")
    private String departmentName;
    @Length(min=6,max=6,message = "编码只能是6位数字")
    private String departmentCode;
    private String departmentDesc;
}
